/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao07;

import java.util.ArrayList;

/**
 *
 * @author SDKW
 */
public class Delegacia extends Seguranca {

    public Delegacia(Alarme observado) {
        super(observado);
    }
    
    @Override
    public void alertar(Alarme observado) {
        if (this.observado == observado) {
            System.out.println(toString() + " acionada.");
        }
    }
    
    
    @Override
    public String toString() {
        return "Delegacia";
    }
}
